//
//  InfoMsgDetailViewController.m
//  Nurse
//
//  Created by RainSets on 12/22/13.
//  Copyright (c) 2013 RainSets. All rights reserved.
//

#import "InfoMsgDetailViewController.h"

@interface InfoMsgDetailViewController ()

@end

@implementation InfoMsgDetailViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self setTitle:@"消息"];
    
    //UIButton *btnBack = [UIButton buttonWithType:UIButtonTypeCustom];
    //[btnBack setFrame:CGRectMake(0.f, 0.f, 40.f, 30.f)];
//    [btnEdit setImage:[UIImage imageNamed:@".png"] forState:UIControlStateNormal];
    //[btnBack setTitle:@"返回" forState:UIControlStateNormal];
//    [btnBack setTitleColor:[UIColor colorWithRed:19.f / 255.f green:127 / 255.f blue:110.f / 255.f alpha:1.f] forState:UIControlStateNormal];
//    [btnBack setTitleColor:[UIColor whiteColor] forState:UIControlStateHighlighted];
//    [btnBack addTarget:self action:@selector(backToPreView) forControlEvents:UIControlEventTouchUpInside];
    
//    UIBarButtonItem *leftBarItem = [[UIBarButtonItem alloc] initWithCustomView:btnBack];
//    [self.navigationItem setLeftBarButtonItem:leftBarItem];
    
    if(sfMsgModel){
        [self.lblMsgTitle setText:sfMsgModel.strTitle];
        [self.lblMsgTime setText:sfMsgModel.strTime];
        [self.textVDetail setText:sfMsgModel.strDesc];
    }
}

-(void)backToPreView{
    [self.navigationController popViewControllerAnimated:YES];
}

-(void)setSelectedMessageDescription:(InfoMsgModel *)md{
    NSLog(@"md  title==%@",md.strTitle);
    sfMsgModel = md;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
